<template>
	<view class="mainbgc" v-if="pageShow">
		<header-top :messageInfo="{typeFlag:true,message:'详情',liner:false}"></header-top>
		<view class="mainpadding_top">
			<view class="flexcenter titletext">{{dataAll.title}}</view>
			<view class="margin_top">
				<u-parse :content="dataAll.content"></u-parse>
			</view>
			<view class="flexright nostrongtext margin_top">{{dataAll.createtime_text}}</view>
		</view>
	</view>
</template>

<script>
	const httpRequest = require("@/common/httpRequest.js")
	export default {
		data() {
			return {
				listid:"",
				dataAll:{},
				pageShow:false
			}
		},
		onLoad(options) {
			this.listid = options.id
			this.init()
		},
		methods: {
			init() {
				httpRequest.request('/dhtapi/index/getPtNoticeDetail', 'GET', {
					id:this.listid
				}).then(res => {
					this.dataAll = res.data
					this.pageShow = true
				}).catch(err => {
					httpRequest.toast(err.msg)
				})
			},
		}
	}
</script>

<style>
	.itembox{
		display: flex;
		align-items: flex-start;
		justify-content: space-between;
	}
	.smalltext{
		font-size: 28rpx;
		margin-right: 30rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #999999;
	}
	.leftdetail{
		flex: 7;
		font-size: 28rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #333333;
		line-height: 33rpx;
	}
	.rightdetail{
		flex: 3;
	}
</style>
